package com.rc.saas.mini.weixin;

/**
 * 存储敏感信息
 * @create 2021/4/29
 */
public class RedisWxConfiguration {
    /**
     * 公众号原始ID
     */
    private String originalid;
    /**
     * 公众号开发者ID
     */
    private String appId;
    /**
     * 公众号开发者密钥
     */
    private String secret;

    /**
     * 公众号Token,此加密密钥用于加密公众号Token，一经配置，不能修改，一旦修改，所有公众号需要重新填写Token
     */
    private String token;

    /**
     * 运营商
     */
    private String tenantCode;

    /**
     * 运营商简码
     */
    private String tenantPrefix;

    /**
     * 微信支付商户号
     */
    private String mchId;

    /**
     * 微信支付商户密钥
     */
    private String partnerKey;

    /**
     * 运营商LOGO
     */
    private String tenantLogoImg;

    public RedisWxConfiguration(String originalid, String appId, String secret, String token, String mchId, String partnerKey,
                                String tenantCode, String tenantPrefix, String tenantLogoImg) {
        this.originalid = originalid;
        this.appId = appId;
        this.secret = secret;
        this.token = token;
        this.mchId = mchId;
        this.partnerKey = partnerKey;

        this.tenantCode = tenantCode;
        this.tenantPrefix = tenantPrefix;
        this.tenantLogoImg = tenantLogoImg;
    }

    public String getOriginalid() {
        return originalid;
    }

    public void setOriginalid(String originalid) {
        this.originalid = originalid;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public String getTenantPrefix() {
        return tenantPrefix;
    }

    public void setTenantPrefix(String tenantPrefix) {
        this.tenantPrefix = tenantPrefix;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getPartnerKey() {
        return partnerKey;
    }

    public void setPartnerKey(String partnerKey) {
        this.partnerKey = partnerKey;
    }

    public String getTenantLogoImg() {
        return tenantLogoImg;
    }

    public void setTenantLogoImg(String tenantLogoImg) {
        this.tenantLogoImg = tenantLogoImg;
    }

    @Override
    public String toString() {
        return "RedisWxConfiguration{" +
                "originalid='" + originalid + '\'' +
                ", appId='" + appId + '\'' +
                ", secret='" + secret + '\'' +
                ", token='" + token + '\'' +
                ", tenantCode='" + tenantCode + '\'' +
                ", tenantPrefix='" + tenantPrefix + '\'' +
                ", mchId='" + mchId + '\'' +
                ", partnerKey='" + partnerKey + '\'' +
                ", tenantLogoImg='" + tenantLogoImg + '\'' +
                '}';
    }
}
